<html xmlns:th="http://www.thymeleaf.org" xmlns:x="http://www.w3.org/1999/html">
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
        <form id="recruitApplyItemEditForm" method="post">
            <table class="grid">
                <input name="id" type="hidden" th:value="${recruitApplyItem.id}">
                <tr>
                    <td></td>
                    <td><input name="id" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.id}"></td>
                    <td></td>
                    <td><input name="updateTime" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.updateTime}"></td>
                </tr>
                <tr>
                    <td></td>
                    <x:select id="recruitApplyItemEditStatus" name="status" type="dbStatus" class="easyui-combobox"
                              data-options="width:160,height:29,editable:false,panelHeight:'auto'"/>
                    <td></td>
                    <td><input name="createTime" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.createTime}"></td>
                </tr>
                <tr>
                    <td>姓名</td>
                    <td><input name="realName" type="text" placeholder="请输入姓名" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.realName}"></td>
                    <td>预留</td>
                    <td><input name="staffNo" type="text" placeholder="请输入预留" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.staffNo}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="mobile" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.mobile}"></td>
                    <td></td>
                    <td><input name="recruitRequirementsItemId" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.recruitRequirementsItemId}">
                    </td>
                </tr>
                <tr>
                    <td>预留</td>
                    <td><input name="picUrl" type="text" placeholder="请输入预留" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.picUrl}"></td>
                    <td></td>
                    <td><input name="birthPlace" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.birthPlace}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="realAddress" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.realAddress}"></td>
                    <td></td>
                    <td><input name="age" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.age}"></td>
                </tr>
                <tr>
                    <td>"man","fe"</td>
                    <td><input name="sex2" type="text" placeholder="请输入" man","fe"" class="easyui-validatebox"
                        data-options="required:true" th:value="${recruitApplyItem.sex2}">
                    </td>
                    <td></td>
                    <td><input name="reasons" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reasons}"></td>
                </tr>
                <tr>
                    <td>是否仅仅为了测试,取值["y","n"]</td>
                    <td><input name="isJustForTest" type="text" placeholder="请输入是否仅仅为了测试,取值[" y","n"]"
                        class="easyui-validatebox" data-options="required:true"
                        th:value="${recruitApplyItem.isJustForTest}">
                    </td>
                    <td>是否已婚,n,y</td>
                    <td><input name="isMarried" type="text" placeholder="请输入是否已婚,n,y" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.isMarried}"></td>
                </tr>
                <tr>
                    <td>职务</td>
                    <td><input name="workTitle" type="text" placeholder="请输入职务" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.workTitle}"></td>
                    <td>是否删除,n,y</td>
                    <td><input name="isDeleted" type="text" placeholder="请输入是否删除,n,y" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.isDeleted}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reservedOne" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reservedOne}"></td>
                    <td></td>
                    <td><input name="reserved2" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved2}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved3" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved3}"></td>
                    <td></td>
                    <td><input name="reserved4" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved4}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved5" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved5}"></td>
                    <td></td>
                    <td><input name="reserved6" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved6}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved7" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved7}"></td>
                    <td></td>
                    <td><input name="reserved8" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved8}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved9" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved9}"></td>
                    <td></td>
                    <td><input name="reserved10" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved10}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="reserved11" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved11}"></td>
                    <td></td>
                    <td><input name="reserved12" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.reserved12}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="createDay" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.createDay}"></td>
                    <td></td>
                    <td><input name="email" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.email}"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input name="attachmentField" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.attachmentField}"></td>
                <tr>
                    <td></td>
                    <td><input name="description" type="text" placeholder="请输入" class="easyui-validatebox"
                               data-options="required:true" th:value="${recruitApplyItem.description}"></td>
                </tr>
            </table>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $('#recruitApplyItemEditForm').form({
            url: basePath + '/recruitApplyItem/edit',
            onSubmit: function () {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success: function (result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.code === 1) {
                    //之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为list页面预定义好了
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#recruitApplyItemEditForm');
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });

        $("#recruitApplyItemEditStatus").val('[[${recruitApplyItem.status}]]');
    });
</script>
